package kr.hkit.powerjava.chapter06;

public class MidTerm {
	public static void main(String[] args) {
/*		solvFirst();
		solvSecond(6);
		solvThird(200);*/
		solvThirdSwitch(90);
	}

	private static void solvThirdSwitch(int size) {
		switch (size / 100) {
			case 0:
				System.out.println("small");
//				break;
			case 1:
				System.out.println("medium");
				break;
			default:
				System.out.println("large");
		}
	}

	private static void solvThird(int size) {
		System.out.format("cup size : %d ", size);
		if (size < 100)
			System.out.println("small");
		else if (size < 200)
			System.out.println("medium");
		else
			System.out.println("large");
	}

	private static void solvSecond(int k) {
		System.out.printf("k = %d", k);
		if (k == 0) {
			System.out.println("A");
		} else if (k > 3) {
			System.out.println("B");
		} else {
			System.out.println("C");
		}
	}

	private static void solvFirst() {
		int n = 100;

		if (n >= 100)
			System.out.println("large");
		else
			System.out.println("small");
	}
}
